package com.aaa.sys.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 言曌
 * @date 2020-01-02 11:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@HeadRowHeight(value = 40)
public class RoleExcel {

    @ExcelProperty(value = "角色编号", index = 0)
    @ColumnWidth(value = 15)
    private Long roleId;

    @ExcelProperty(value = "角色名称", index = 1)
    @ColumnWidth(value = 15)
    private String name;

    @ExcelProperty(value = "角色描述", index = 2)
    @ColumnWidth(value = 20)
    private String description;

    @ExcelProperty(value = "创建时间", index = 3)
    @ColumnWidth(value = 20)
    private Date createTime;

    @ExcelProperty(value = "创建人", index = 4)
    @ColumnWidth(value = 20)
    private Long createUser;

}
